package com.esl.model.admin;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "T_Group")
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
public class Group implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6227456156410186586L;
	private Integer id;
	private String name;
	private String temp;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "g_id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "g_name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "g_temp")
	public String getTemp() {
		return temp;
	}

	public void setTemp(String temp) {
		this.temp = temp;
	}

}
